package com.universe.demo.springboot.circulardependency;


import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


@Service
@Slf4j
public class ServiceB {
    @Autowired
    private ServiceA serviceA;

    static {
        log.info("ServiceB static block");
    }

    public ServiceB() {
        log.info("b constructor");
    }

    public void say() {
        log.info("call ServiceB");
    }


    public void sayA() {
        serviceA.say();
    }
}
